﻿@model PrivateMessageIndexModel
@using SmartStore.Web.Models.PrivateMessages;
@using SmartStore.Web.Framework.UI;

@{    
    Layout = "~/Views/Shared/_ColumnsOne.cshtml";

    Html.AddTitleParts(T("PageTitle.PrivateMessages").Text);
}
<div class="page private-messages-page">
    <div class="page-title">
        <h1>@T("PrivateMessages.PrivateMessages")</h1>
    </div>
    <div class="page-body">
        @*
        @{
            var selectSentTab = (@Model.SentItemsTabSelected) ? ".tabs('select', 1)" : "";
        }
        <script type="text/javascript">
            $(document).ready(function () {
                $("#tabs").tabs()@Html.Raw(selectSentTab);
            });
        </script>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">@T("PrivateMessages.Inbox")</a></li>
                <li><a href="#tabs-2">@T("PrivateMessages.SentItems")</a></li>
            </ul>
            <div id="tabs-1">
                @Html.Action("Inbox", new { page = Model.InboxPage, tab = "inbox" })
            </div>
            <div id="tabs-2">
                @Html.Action("SentItems", new { page = Model.SentItemsPage, tab = "sent" })
            </div>
        </div>*@

        @Html.SmartStore().TabStrip().Name("product-detail-tabs").Items(x =>
        {
            x.Add().Text(@T("PrivateMessages.Inbox"))
                .Content( Html.Action("Inbox", new { page = Model.InboxPage, tab = "inbox" }).ToString() )
                .Selected(!Model.SentItemsTabSelected);
            
            x.Add().Text(@T("PrivateMessages.SentItems"))
                .Content( Html.Action("SentItems", new { page = Model.SentItemsPage, tab = "sent" }).ToString() )
                .Selected(Model.SentItemsTabSelected);
        })

    </div>
</div>
